import Vue from 'vue'
import App from './App.vue'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import VueRouter from "vue-router";
import router from './router'
//全局引入echarts
import * as echarts from 'echarts'

Vue.config.productionTip = false
Vue.prototype.$echarts = echarts

Vue.use(ElementUI);
Vue.use(VueRouter)
new Vue({
  el:'#app',
  render: h => h(App),
  router:router,
  //安装全局事件总线
  beforeCreate() {
    Vue.prototype.$bus = this  //安装全局事件总线
  }
})
